---
hide_title: true
title: 'TextHighlightExtension'
---

import Basic from '../../website/extension-examples/extension-text-highlight/basic';

# `TextHighlightExtension`

## Summary

Add a highlight color to the selected text (or text within a specified range).

## Usage

### Installation

This extension is installed for you when you install the main `remirror` package.

You can use the imports in the following way:

```ts
import { TextHighlightExtension } from 'remirror/extensions';
```

The extension is provided by the `@remirror/extension-text-highlight` package.

### Examples

<Basic />

## API

- [TextHighlightExtension](../api/extension-text-highlight)
